package com.trade.module.daq.repository;

import com.trade.module.daq.entity.SystemInfo;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

/**
 * Class Description: 系统持久层
 *
 * @Version v1.0 2017/6/22 0:05
 * @JDK version 1.8.0_51
 * @Author zfb
 */
@Repository
public interface SystemInfoRepository extends PagingAndSortingRepository<SystemInfo,String>,JpaSpecificationExecutor<SystemInfo>{
    /**
     * 根据系统id和数据状态查询系统
     * @param id 系统id
     * @param dataFlag 数据状态
     * @return 系统
     */
    SystemInfo findByIdAndDataFlag(String id, String dataFlag);
}
